import { CustomEnum } from "@/enums";

/**
 * 积分交易类型
 */
export const TRANSACTION_TYPE_ENUM: CustomEnum<number> = {
  ADD: {
    value: 1,
    label: "增加",
  },
  SUB: {
    value: 2,
    label: "消耗",
  },
};

/**
 * 积分来源
 */
export const COIN_BILLS_SOURCE_ENUM: CustomEnum<number> = {
  ALLOT_CONSUMER_BY_DESIGN: {
    value: 100,
    label: "业主所得-设计师协助分佣",
  },
  ALLOT_CONSUMER_BY_PROJECT_MANAGER: {
    value: 101,
    label: "业主所得-项目经理协助分佣",
  },
  ALLOT_PLATFORM_BY_DESIGN: {
    value: 110,
    label: "平台所得-设计师协助分佣",
  },
  ALLOT_PLATFORM_BY_PROJECT_MANAGER: {
    value: 111,
    label: "平台所得-项目经理协助分佣",
  },
  ALLOT_PLATFORM_BY_C_FISSION: {
    value: 112,
    label: "C端裂变",
  },
  ALLOT_PARTNER_BY_CHANNEL: {
    value: 120,
    label: "渠道合伙人",
  },
  ALLOT_PARTNER_BY_SENIOR: {
    value: 121,
    label: "高级合伙人",
  },
  RECHARGE_BY_COMPANY: {
    value: 130,
    label: "公司充值",
  },
  RECHARGE_BY_EMPLOYEE: {
    value: 131,
    label: "个人充值",
  },
  OPPORTUNITY_PAYMENT_BY_DECORATION_COMPANY: {
    value: 210,
    label: "装修公司打招呼",
  },
  OPPORTUNITY_PAYMENT_BY_MATERIALS_COMPANY: {
    value: 211,
    label: "家居建材打招呼",
  },
  OPPORTUNITY_PAYMENT_BY_DESIGN: {
    value: 212,
    label: "设计师打招呼",
  },
};

/**
 * 积分状态
 */
export const COIN_BILLS_STATUS_ENUM: CustomEnum<number> = {
  PENDING: {
    value: 1,
    label: "待生效",
  },
  ACTIVE: {
    value: 2,
    label: "可用",
  },
  FROZEN: {
    value: 3,
    label: "冻结",
  },
};

/**
 * 积分提现状态
 */
export const COIN_CASH_STATUS_ENUM: CustomEnum<number> = {
  PENDING: {
    value: 1,
    label: "待审核",
  },
  ACTIVE: {
    value: 2,
    label: "已通过",
  },
  FROZEN: {
    value: 3,
    label: "已驳回",
  },
};
